<!DOCTYPE html>
<html>
<head>
    <title>员工信息表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="form-group col-sm-2">
            <input type="text" class="form-control" v-model="q.key"
                   @keyup.enter="query" placeholder="请输入查询条件">
        </div>
        <a class="btn btn-default" @click="query">查询</a>
        <hr>
        <div class="grid-btn">
			<#if shiro.hasPermission("deptmanage:staffinfo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("deptmanage:staffinfo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("deptmanage:staffinfo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
            <form action="../../deptmanage/staffinfo//templateDownload" method="post" style="display:inline-block;">
                <input type="submit" class="btn btn-primary" value="下载模版" />
            </form>
            <form action="../../deptmanage/staffinfo/batchImport"  class="fupload" method="post" style="display:inline-block;" enctype="multipart/form-data">
                <input type="file" name="file" placeholder="请选择excel文件" style="border-radius: 5px; padding: 5px;border: 1px solid #2e6da4;display:inline-block;" required="required"/>
                <input type="submit" class="btn btn-primary" value="批量导入"  />
            </form>
            <form action="../../deptmanage/staffinfo/export" method="post" style="display:inline-block;">
                <input type="submit" class="btn btn-primary" value="导出" />
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">人员编码</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="staffInfo.userseq" placeholder="人员编码"/>
                </div>
            </div>
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">人员姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.username" placeholder="人员姓名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">性别</div>
                        <div class="col-sm-10">
                            <!--<input type="text" class="form-control" v-model="staffInfo.gender" placeholder="性别"/>-->
                            <select class="form-control" v-model="staffInfo.gender">
                                <!--<option value="0">男</option>
                                <option value="1">女</option>-->
                                <option v-for="option in gender" v-bind:value="option.key">
                                    {{ option.value }}
                                </option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">出生日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.birthday"id="birthday" placeholder="出生日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">证件类型</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.idType" placeholder="证件类型"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">证件号码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.idNo" placeholder="证件号码"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">婚姻状态</div>
                        <div class="col-sm-10">
                            <!--<input type="text" class="form-control" v-model="staffInfo.marriage" placeholder="婚姻状态（已婚，未婚，丧偶，离婚，再婚）"/>-->
                            <select class="form-control" v-model="staffInfo.marriage">
                                <!--<option value="0">未婚</option>
                                <option value="1">已婚</option>
                                <option value="2">丧偶</option>
                                <option value="3">离婚</option>
                                <option value="4">再婚</option>-->
                                <option v-for="option in marriage" v-bind:value="option.key">
                                    {{ option.value }}
                                </option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">民族</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.nation" placeholder="民族"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">籍贯</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.nativePlace" placeholder="籍贯"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">居住地</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.birthPlace" placeholder="居住地"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">入职日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.joinPartyDate" id="joinPartyDate"  placeholder="入职日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">转正日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.normalPartyDate" id="normalPartyDate" placeholder="转正日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">使用工资</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.testSalary" placeholder="使用工资"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">转正工资</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.normalSalary" placeholder="转正工资"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">社保状态</div>
                        <div class="col-sm-10">
                           <!-- <input type="text" class="form-control" v-model="staffInfo.socialInsuranceStatus" placeholder="社保状态（新开，续缴，跨地转移，不缴）"/>-->
                            <select class="form-control" v-model="staffInfo.socialInsuranceStatus">
                                <!--<option value="0">新开</option>
                                <option value="1">续缴</option>
                                <option value="2">跨地转移</option>
                                <option value="3">不缴</option>-->
                                <option v-for="option in socialInsuranceStatus" v-bind:value="option.key">
                                    {{ option.value }}
                                </option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">公积金</div>
                        <div class="col-sm-10">
                            <!--<input type="text" class="form-control" v-model="staffInfo.accumulationFund" placeholder="公积金（新开，转移，不缴）"/>-->
                            <select class="form-control" v-model="staffInfo.accumulationFund">
                                <!--<option value="0">新开</option>
                                <option value="1">转移</option>
                                <option value="2">不缴</option>-->
                                <option v-for="option in accumulationFund" v-bind:value="option.key">
                                    {{ option.value }}
                                </option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">参加工作日期</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.participationDate" id="participationDate" placeholder="参加工作日期"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">健康状况</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.healthy" placeholder="健康状况"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.academicDegree" placeholder="学位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">学历</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.educationLevel" placeholder="学历"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">政治面貌</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.political" placeholder="政治面貌"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">职务级别</div>
                        <div class="col-sm-10">
                            <!--<input type="text" class="form-control" v-model="staffInfo.jobLevel" placeholder="职务级别"/>-->
                            <select class="form-control" v-model="staffInfo.jobLevel">
                                <!--<option value="0">总经理</option>
                                <option value="1">财务</option>
                                <option value="2">商务</option>
                                <option value="3">部门经理</option>
                                <option value="4">行政</option>
                                <option value="5">人事</option>-->
                                <option v-for="option in jobLevel" v-bind:value="option.key">
                                    {{ option.value }}
                                </option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">人员状态</div>
                        <div class="col-sm-10">
                            <!--<input type="text" class="form-control" v-model="staffInfo.userstatus" placeholder="人员状态（在职，实习，离职，试用）"/>-->
                            <select class="form-control" v-model="staffInfo.userstatus">
                                <!--<option value="0">试用</option>
                                <option value="1">实习</option>
                                <option value="2">在职</option>
                                <option value="3">离职</option>-->
                                <option v-for="option in userstatus" v-bind:value="option.key">
                                    {{ option.value }}
                                </option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">紧急联系人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.emergencyContact" placeholder="紧急联系人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">紧急联系人电话</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="staffInfo.emergencyContactTel" placeholder="紧急联系人电话"/>
                        </div>
                    </div>
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">创建日期</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="staffInfo.createDate" id="createDate" placeholder="创建日期"/>-->
<!--                        </div>-->
<!--                    </div>-->
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">创建人</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="staffInfo.createUser" placeholder="创建人"/>-->
<!--                        </div>-->
<!--                    </div>-->
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">修改日期</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" id="updateDate" v-model="staffInfo.updateTime" placeholder="修改日期"/>-->
<!--                        </div>-->
<!--                    </div>-->
<!--											                    <div class="form-group">-->
<!--                        <div class="col-sm-2 control-label">修改人</div>-->
<!--                        <div class="col-sm-10">-->
<!--                            <input type="text" class="form-control" v-model="staffInfo.updateUser" placeholder="修改人"/>-->
<!--                        </div>-->
<!--                    </div>-->
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/deptmanage/staffinfo.js?_${.now?long}"></script>
</body>
</html>